<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><%@page
	language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="webctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
<title>电磁辐射公共投诉记录</title>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<meta name="GENERATOR"
	content="Rational® Application Developer™ for WebSphere® Software">
<style>
   body{margin:0; padding:0; font-size:12px; font-family:"黑体"; line-height:25px; font-weight:normal;}
h1,h2,h3,p{ font-family:"黑体"; line-height:25px; font-weight:normal;}
h1{font-size:28px; font-family:"黑体"; line-height:40px; text-align:center;}
h2{font-size:15px; font-family:"黑体"; font-weight: bold; }
h3{ font-size:15px; font-family:"黑体"; font-weight:bold; text-align:right;}

</style>
<script type="text/javascript" src="${webctx}/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
var jzsbbh;
var tsbh;
	function init(){
		var url = location.search;
	    if (url.indexOf("?") != -1) { 
	       var str = url.substr(1); 
	       strs = str.split("&"); 
	       jzsbbh=strs[0].split("=")[1];
	       tsbh=strs[1].split("=")[1];
	    }
		var ggts_result=null;
		var tscl_result=null;
		var jzsb_result=null;
		$.ajax({
			url:"{webctx}/tsbb_getTsclJbxx.action?fresh=" + Math.random(),
			method:"POST",
			data:{'dcfsTsclJbxx.tsbh':tsbh},
			async:false,
			params:{},
			success:function(object,bool,response){
				tscl_result=eval(response.responseText);
				$.ajax({
					url:"{webctx}/tsbb_getGgtsJbxx.action?fresh=" + Math.random(),
					method:"POST",
					async:false,
					data:{'dcfsGgtsJbxx.tsbh':tsbh},
					params:{},
					success:function(object,bool,response){
						ggts_result=eval(response.responseText);
						$.ajax({
							async:false,
							type:"POST",
							url:"${webctx}/tsjzsb_getDcfsJzSbJbxxList_ggts.action?fresh=" + Math.random(),
							data:{'dcfsJzSbJbxx.jzsbbh':jzsbbh},
							success:function(object,bool,response){
								jzsb_result=eval(response.responseText);
							},
							failure:function(response){
								alert("加载失败");
							}
						});
					},
					failure:function(response){
						alert("加载失败");
					}
				});
			},
			failure:function(response){
				alert("提示","加载出现了异常！");
			}
		});
		var htmlStr='';
		htmlStr+='<table id="t" width="625" height="auto" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000" style="margin-top:20px; margin-bottom:20px;">';
		htmlStr+='<tr><td  style="padding:10px 10px 0 10px;" bgcolor="#FFFFFF">';
		htmlStr+='<h1 align="center">关于信访人'+ggts_result[0].tsr+'反映'+ggts_result[0].tssbssqy+ggts_result[0].tssbmc+'<br />';
		htmlStr+='发射塔辐射扰民的信访事项答复意见书</h1>';
		htmlStr+='　信访人'+ggts_result[0].tsr+'：';
		htmlStr+='<br />';
		htmlStr+='<p>　　你反映'+ggts_result[0].tssbssqy+ggts_result[0].tssbmc+'发射塔选址问题，我们已于'+(ggts_result[0].tssj).split("-")[0]+'年'+(ggts_result[0].tssj).split("-")[1]+'月'+(ggts_result[0].tssj).split("-")[2]+'日正式受理，并按《信访条例》的规定进行了认真调查，现对你所反映的问题答复如下：</p>';
		htmlStr+='<h2>　一、反映的主要问题和诉求</h2>';
		htmlStr+='　　'+ggts_result[0].tsqkms+'</br>';
		htmlStr+='　　'+ggts_result[0].tsbz;
		htmlStr+='<h2>　二、调查情况</h2>';
		htmlStr+='　　针对你所反映的问题，我们进行了认真细致的调查。';
		htmlStr+='<br />　　'+tscl_result[0].xcms;
		htmlStr+='<h2>　三、处理意见</h2>';
		htmlStr+='　　根据以上情况，我们认为'+jzsb_result[0].jzyysxx+'公司发射塔选址的信访问题属于电磁辐射类投诉。该基站环评报告已经取得'+jzsb_result[0].jzysdw+'批复。处理结果为：'+tscl_result[0].xccljg+' <br />';
		htmlStr+='<br />';
		htmlStr+='<h3 align="right">武汉市辐射和危险固体废物污染防治管理中心<br />';
		htmlStr+=(tscl_result[0].tsclsj).split("-")[0]+'年'+(tscl_result[0].tsclsj).split("-")[1]+'月'+(tscl_result[0].tsclsj).split("-")[2]+'日</h3><br /><br /></td></tr></table>';
		$("#table").html(htmlStr);
	}
</script>
</head>
<script type="text/javascript">
    function test(){
       document.getElementById("tableInfo").value=document.getElementById("table").innerHTML;
       var jzsb_result=jzsb();
       document.getElementById("form1").action="${webctx }/exp_ExportToWord.action?sbmc="+jzsb_result[0].jzsbmc;
      	document.getElementById("form1").submit();
    }
    function unloadWord(){
		document.getElementById("form1").removeChild(document.getElementById("div1"));
	}
	function ret(){
		//alert("ss");
		window.location.href="${webctx }/dcfs_ggts/dcfs_ggts_cl_jbxx.jsp?id="+tsbh+"&sb="+jzsbbh;
	}
</script>
<body onload="init()">
 	<form action="<%=request.getContextPath()%>/ExportWordServlet?sbmc=" method="post" id="form1">
		<div style="overflow:auto; position:relative; height:100%;">
			<div id="table">
			 
			</div>
			<div id="div1" align="center">
			    <input type="button" name="Word" value="导出表格" onClick="test()" id="sub"/>
		     	<input type="button" name="button" id="button" value="打印" onClick="unloadWord();javascript:print();" />
		      	<input type="button"  onclick="ret()" value="返回"/></input>
		   	    <input type="hidden" id="tableInfo" name="tableInfo" value=""/>
		 	</div>	
		</div>

	</form>
</body>
</html>